package co.yixiang.modules.order.aftersale.entity.domain;

import co.yixiang.common.domain.BaseDomain;
import co.yixiang.modules.order.trade.entity.enums.AfterSaleTypeEnum;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 售后原因
 *
 * @author Bulbasaur
 * @since 2021/7/9 1:39 上午
 */
@Data
@TableName("yx_after_sale_reason")
@ApiModel(value = "售后原因")
public class AfterSaleReason extends BaseDomain {

    @TableId
    private Long id;

    @NotNull
    @ApiModelProperty(value = "售后原因")
    private String reason;
    /**
     * @see AfterSaleTypeEnum
     */
    @ApiModelProperty(value = "原因类型", allowableValues = "CANCEL,RETURN_GOODS,RETURN_MONEY,COMPLAIN")
    @NotNull
    private String serviceType;

}
